public class AdmitBedRequestEvent extends EventBase {
	private PatientBase patient;
	private Doctor doctor;
		
	public AdmitBedRequestEvent(PatientBase patient, Doctor doctor) {
		this.patient = patient;
		this.doctor = doctor;
	}

	public boolean canOccur(State state) {
		if(state.isMDAvailable())
			return true;
		else
			return false;
	}


	// Check this method because the nurse aspect is tricky and probably wrong
	public void execute(State s) {
		patient.setActivity(TreatmentType.AdmitBedRequest);
		Simulator.addEvent(new AdmitBedReadyEvent(patient, Simulator.nextNormal(3, 2)));
		Simulator.addEvent(new MDDoneAdmittingEvent(Simulator.nextNormal(3, 2)));
	}
}
